import java.io.*;
public class Main {
	int a;
	String b;
	String c;
	public Main(int a,String b,String c)
	{
		this.a=a;
		this.b=b;
		this.c=c;
	}
	public String toString()
	{
		return "姓名："+c+"    "+"年龄："+a+"    "+"学号："+b;
	}
	public static void main(String[] args ) {
		Main d[]= {new Main(20,"01","张三"),new Main(3,"02","李四"),new Main(40,"03","赵武")};
		 int i;
		for(i=0;i<d.length;i++)
			 d[i].a++;
		for(i=0;i<d.length;i++)
			System.out.println(d[i]);
		System.out.println("年龄大于20得学生信息如下：");	
		for(i=0;i<d.length;i++)
			if(d[i].a>20)
				System.out.println("姓名："+d[i].c+"    "+"年龄："+d[i].a+"    "+"学号："+d[i].b);	
	}
}